package com.api.devices.service.impl;

import com.api.devices.domain.query.MonitoredQuery;
import com.api.devices.domain.vo.MonitoredVo;
import com.api.devices.mapper.MonitoredMapper;
import com.api.devices.service.IMonitoredService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class MonitoredServiceImpl implements IMonitoredService {
    @Autowired
    MonitoredMapper monitoredMapper;
    @Override
    public List<MonitoredQuery> list(MonitoredVo vo) {
        return monitoredMapper.list(vo);
    }

    @Override
    public MonitoredQuery item(MonitoredVo vo) {
        return monitoredMapper.item(vo);
    }

    @Override
    public MonitoredQuery create(MonitoredVo vo) {
        monitoredMapper.create(vo);
        return monitoredMapper.item(vo);
    }

    @Override
    public MonitoredQuery modify(MonitoredVo vo) {
        monitoredMapper.modify(vo);
        return monitoredMapper.item(vo);
    }

    @Override
    public void delete(MonitoredVo vo) {
        monitoredMapper.delete(vo);
    }


}
